package com.vcredit.creditcat.service;
import com.vcredit.creditcat.model.CustCatfoodLog;
import com.vcredit.creditcat.persistence.base.CustCatfoodLogMapper;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 
 **/
@Service
public class CustCatfoodLogService {
	@Autowired
    private CustCatfoodLogMapper mapper;
    
    public void insert(CustCatfoodLog obj){
    	mapper.insert(obj);
    }
    
    public void update(CustCatfoodLog obj){
    	mapper.update(obj);
    }
    
    public List<CustCatfoodLog> findAll(){
		return mapper.findAll();
	}
	
	public List<CustCatfoodLog> find(CustCatfoodLog obj){
		return mapper.find(obj);
	}

	public List<CustCatfoodLog> findByCustIdOrderBy(Long custId) {
		return mapper.findByCustIdOrderBy(custId);
	}

	public Long findByParamToday(Long custId, long catfoodTypeId) {
		return mapper.findByParamToday(custId,catfoodTypeId);
	}
}